<template>
  <view class="container">
    <image class="device-illustration" src="/static/images/device-illustration.svg" mode="aspectFit"></image>
    <view class="title">AI桌面机器人</view>
    <view class="subtitle">轻松连接您的桌面机器人</view>
    <button class="start-btn" @click="navigateToSearching" hover-class="btn-hover">扫描设备</button>
    <view class="copyright">甘肃优软互联信息科技有限公司版权所有</view>
  </view>
</template>

<script>
export default {
  methods: {
    navigateToSearching() {
      uni.navigateTo({
        url: '/pages/index/searching'
      })
    }
  }
}
</script>

<style>
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f8f8f8;
}

.device-illustration {
  width: 300rpx;
  height: 300rpx;
  margin-bottom: 40rpx;
  animation: float 3s ease-in-out infinite;
}

.title {
  font-size: 40rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 20rpx;
}

.subtitle {
  font-size: 28rpx;
  color: #666;
  margin-bottom: 60rpx;
}

.start-btn {
  width: 80%;
  padding: 24rpx 0;
  font-size: 32rpx;
  background-color: #007aff;
  color: white;
  border-radius: 50rpx;
  text-align: center;
  box-shadow: 0 8rpx 16rpx rgba(0,122,255,0.2);
  transition: all 0.3s ease;
}

.btn-hover {
  transform: translateY(2rpx);
  box-shadow: 0 4rpx 8rpx rgba(0,122,255,0.2);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20rpx); }
}
.copyright {
  font-size: 28rpx;
  color: #999;
  text-align: center;
  padding: 20rpx 0;
  margin-top: 200px;
}
</style>